<template>
  <div>
    <el-container>
      <el-header id="A1">YoGo &nbsp后 &nbsp台 &nbsp管 &nbsp理 &nbsp首 &nbsp页</el-header>
      <el-container>


        <el-aside width="200px">

          <el-menu :default-openeds="['1', '2']">

            <el-submenu index="1">
              <template slot="title"><i class="el-icon-setting"></i>yoga管理</template>
              <el-menu-item-group>

                <el-menu-item-group title="账号管理">
                  <el-menu-item index="1-1"><a href="#/UserManagement">用户管理</a></el-menu-item>
                  <el-menu-item index="1-2"><a href="#/VenueManagement">场馆账号管理 </a></el-menu-item>
                  <el-menu-item index="1-3"><a href="#/CoachManagement">教练管理 </a></el-menu-item>
                  <el-menu-item index="1-4"><a href="#/AdminAccountManagement">管理员账号管理 </a></el-menu-item>
                </el-menu-item-group>

                <el-menu-item-group title="类别管理">
                  <el-menu-item index="1-5"><a href="#/CoachTypeManagement">教练类别管理</a></el-menu-item>
                  <el-menu-item index="1-6"><a href="#/CourseTypeManagement">课程类别管理 </a></el-menu-item>
                </el-menu-item-group>

              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="2">
              <template slot="title"><i class="el-icon-setting"></i>审批管理</template>
              <el-menu-item-group>
                <el-menu-item index="2-1"><a href="#/VneueExamineManagement">场馆入驻审批</a></el-menu-item>
                <el-menu-item index="2-2"><a href="#/CoachExamineManagement">教练申请审批</a></el-menu-item>
             
              <!--  <el-menu-item index="2-3"><a href="#/GoodsRefundExamine">商品退款审批</a></el-menu-item>
                                <el-menu-item index="2-5"><a href="#/OfficeManagement">团课退款审批</a></el-menu-item> -->
              </el-menu-item-group>
            </el-submenu>




            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title"><a href="#/OrderManagement">订单查询</a></span>
            </el-menu-item>

            <el-menu-item index="3">
              <i class="el-icon-menu"></i>
              <span slot="title"><a href="#/GoodsManagement">商城管理</a></span>
            </el-menu-item>

            <el-menu-item index="4">
              <i class="el-icon-menu"></i>
              <span slot="title"><a href="#/VenueManagementBase">场馆管理</a></span>
            </el-menu-item>


            <el-menu-item index="5">
              <i class="el-icon-error"></i>
              <span slot="title"><a href="#/AdminLogin" @click="removeToken()">退出登录</a></span>
            </el-menu-item>

          </el-menu>


        </el-aside>


        <el-main>
          <router-view></router-view>
        </el-main>

      </el-container>
    </el-container>

  </div>
</template>

<script>
  export default {
    name: "AdminHome",
    data() {
      return {

      }
    },
    methods: {
      removeToken(){
        localStorage.clear('token')
      }


    },
    created() {

    }
  }
</script>

<style>
  #A1 {
    font-size: 45px;
    font-family: '华文行楷';
  }

  .el-header {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 603px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    /* line-height: 603px; */
  }

  * {
    margin: 0;
    padding: 0;
  }
</style>
